package 实验二;

public class Teacher {
	private String tId;
	private String name;
	private String gender;
	private Course course;
	public Teacher(String tId,String name,String gender) {
		this.tId=tId;
		this.name=name;
		this.gender=gender;
	}
    public Course openCourse(String cId,String cName,String location,String time) {
        this.course = new Course(cId,cName,location,time,this);
        return this.course;
    }

    public String getTId() { return tId; }
    public void setTId(String tId) { this.tId = tId; }

    public String getName() { return name; }
    public void setName(String name) { this.name = name; }

    public String getGender() { return gender; }
    public void setGender(String gender) { this.gender = gender; }

    public Course getCourse() { return course; }
    public void setCourse(Course course) { this.course = course; }
}
